package com.aldobucchi.x.flash.events
{
	import flash.events.Event;

	/**
	 * 
	 * Provides access to the original event
	 * 
	 * TODO clone()
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */
	public class EventHookEvent extends Event
	{
	
		public static const FIRE:String = "fire";
	
		private var _originalEvent:Event;
		public function get originalEvent():Event
		{
			return _originalEvent;
		}
	
		public function EventHookEvent( type:String, bubbles:Boolean = false, cancelable:Boolean = false, originalEvent:Event = null )
		{
			super( type, bubbles, cancelable );
			_originalEvent = originalEvent;
		}
		
		
		override public function clone( ):Event
		{
		
			return new EventHookEvent( type, bubbles, cancelable, originalEvent );
		
		}	
		
	}
	
}